package com.art.sunflower.service;

import com.art.sunflower.enumeration.CourseStatusType;
import com.art.sunflower.exception.NullCourseException;
import com.art.sunflower.pojo.Course;
import com.art.sunflower.pojo.Lay;
import com.art.sunflower.util.MyPageInfo;

import java.util.List;
import java.util.Map;

public interface CourseService {
    int addCourse(Course course);

    int deleteById(int id);

    int updateCourseById(int id, String courseName, String introduce, String requirement, int teachFee, int materialFee, int cooperationId);

    Lay findAllCourse(Integer pagenum, Integer pagesize);

    Map<String, Object> selectOneCourse(int id);

    int updateCourseStatu(int id, CourseStatusType statu);

    Lay findAllCourseByAdmin(Integer pagenum, Integer pagesize);

    MyPageInfo findAllCourseByAdmin2(Integer pagenum, Integer pagesize);

    int courseStatuCheck(int id, int teachFee, int materialFee, CourseStatusType statu);

    int selectMst(int id);

    List<Map<String, Object>> getNameList() throws NullCourseException;

    Map<String, Object> findOneCourseByAdmin(int id);

}
